package com.sdu.hotel.entity.system;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.sdu.hotel.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xyh
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table("sys_role_authority")
public class SysRoleAuthority extends BaseEntity implements Serializable {

    @Column("role_id")
    private String roleId;

    @Column("authority_id")
    private String authorityId;

    @Column(value = "update_time",onInsertValue = "now()")
    private Date updateTime;
}
